package com.zhaokuner.parentstarter.enumeration;


/**
 * 是否 1是  0否
 *
 * @author zhaoxikun
 */

public enum YesOrNoEnum implements SuperCodeMsg {
    /**
     * 0 否
     */
    NO(0, "否"),
    /**
     * 1 是
     */
    YES(1, "是");


    private final Integer code;
    private final String msg;

    YesOrNoEnum(Integer code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    @Override
    public Integer getCode() {
        return code;
    }

    @Override
    public String getMsg() {
        return msg;
    }
}
